package com.sq.springcloud.alibaba.service;

import com.sq.springcloud.entities.CommontResult;
import com.sq.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description: TODO
 * @author: ydy
 * @date: 2022-11-20 15:04
 */
@FeignClient(value = "nacos-payment-provider", fallback = PaymentFallbackService.class)
public interface PaymentService {
    @GetMapping(value = "/paymentSQL/{id}")
    CommontResult<Payment> paymentSQL(@PathVariable("id") Long id);
}
